package com.bpc.cs.dao;

import java.util.List;

import com.bpc.cs.dto.FactorDTO;

/**
 * @author   phan_tp
 * @datetime Dec 7, 2012 : 5:32:17 PM
 */
public interface IFactorDAO {

	/**
	 * Get list factor
	 * @return List<FactorDTO>
	 */
	public List<FactorDTO> selectAllFactor();

	/**
	 * Insert new factor to table
	 * @param String factorDTO
	 * @return Boolean TRUE : Insert successful
	 * 				   FALSE: Insert failed
	 */
	public boolean insertFactor(FactorDTO factorDTO);

	/**
	 * Select factor by factorID
	 * @param int factorID
	 * @return FactorDTO
	 */
	public FactorDTO selectFactorByID(int factorID);

	/**
	 * Check factor name is existed or not
	 * @param String factorName
	 * @return boolean TRUE : factor name is duplicated
	 * 				   FALSE: factor name isn't duplicated
	 */
	public boolean isDuplicateFactorName(String factorName);
}
